package com.bw.mallshop;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import android.os.Bundle;

import com.alibaba.android.arouter.launcher.ARouter;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Fragment goodsFragment = (Fragment) ARouter.getInstance()
                .build("/com/bw/goods/mvvm/view/fragment/HomeGoodsFragment").navigation();
        getSupportFragmentManager().beginTransaction().add(R.id.main_fg_group,goodsFragment).commit();
    }
}